package chapter7classloader;

public class P74 {

    static {
        i = 0;
        //不能这样引用 因为初始化语句是按代码的顺序执行的 i
//        System.out.println(i);
    }
    static int i = 10;

    interface i1{
        public int A = 0;
    }
    interface i2 extends i1{
        public int A = 0;
    }
    interface i3{
        public int A=0;
    }

    static class Parent implements i2{
        static int A = 10;
    }
    static class Child extends Parent implements i3{
        static int A = 20;

    }

    public static void main(String[] args) {
        //变量的覆盖 以最下层的代码为准
        System.out.println(Child.A);
    }
}
